x1, y1, x2, y2 = map(int, input().split())
x3, y3, x4, y4 = map(int, input().split())
x5, y5, x6, y6 = map(int, input().split())
if x1 >= x3 and y1 >= y3 and x2 <= x4 and y2 <= y4:
print('NO')
exit()
elif x1 >= x3 and y1 >= y3 and x2 > x4 and y2 <= y4:
x1 = max(x4, x1)
elif x1 < x3 and y1 >= y3 and x2 <= x4 and y2 <= y4:
x2 = min(x3, x2)
elif x1 >= x3 and y1 < y3 and x2 <= x4 and y2 <= y4:
y2 = min(y3, y2)
elif x1 >= x3 and y1 >= y3 and x2 <= x4 and y2 > y4:
y1 = max(y4, y1)
if x1 >= x5 and y1 >= y5 and x2 <= x6 and y2 <= y6:
print("NO")
else:
print("YES")
1405A - Permutation Forgery | 1733A - Consecutive Sum |
1733B - Rule of League | 1733C - Parity Shuffle Sorting |
1264A - Beautiful Regional Contest | 1695A - Subrectangle Guess |
467B - Fedor and New Game | 252C - Points on Line |
735C - Tennis Championship | 992A - Nastya and an Array |
554A - Kyoya and Photobooks | 79B - Colorful Field |
265B - Roadside Trees (Simplified Edition) | 1362C - Johnny and Another Rating Drop |
1214C - Bad Sequence | 1091B - New Year and the Treasure Geolocation |
244A - Dividing Orange | 1061C - Multiplicity |
1312A - Two Regular Polygons | 801A - Vicious Keyboard |
510B - Fox And Two Dots | 616D - Longest k-Good Segment |
1604A - Era | 555B - Case of Fugitive |
551A - GukiZ and Contest | 1399F - Yet Another Segments Subset |
1371C - A Cookie for You | 430B - Balls Game |
1263A - Sweet Problem | 1332B - Composite Coloring |